<?php

use Illuminate\Database\Schema\Blueprint;
use Illuminate\Database\Migrations\Migration;

class CreateFaqCategoryTable extends Migration
{
    /**
     * Run the migrations.
     *
     * @return void
     */
    public function up()
    {
        Schema::create('faq_category', function (Blueprint $table) {
            $table->increments('id');
            $table->string('cate_name', 30)->default('')->comment('分类名称');
            $table->tinyInteger('cate_status')->default(1)->comment('分类状态，1开启0隐藏-1删除');
            $table->index('cate_status');
        });
    }

    /**
     * Reverse the migrations.
     *
     * @return void
     */
    public function down()
    {
        Schema::drop('faq_category');
    }
}
